local SPELL_ICON = {}

SpellData = {}

function SPELL_ICON:Init()
	self.PosX = 0
	self.PosY = 0
	self.Size = 47
	self.SlotNum = 1
	self.Color = Color(255, 255, 255, 255)
	self.Icon  = "entities/npc_mossman.png"
	self.info = {}
end

function SPELL_ICON:SetColor(color)
	self.Color = color
end

function SPELL_ICON:SetInfo(info)
	spellInfo[SlotNum] = info
	refresh_spells()
end

function SPELL_ICON:SetPos(x, y)
	self.PosX = x
	self.PosY = y
end

function SPELL_ICON:Paint()
	surface.SetDrawColor(Color(0, 0, 0, 255))
	surface.DrawRect( self.PosX, self.PosY, self.Size, self.Size)
	surface.SetDrawColor( self.Color )
	surface.SetMaterial(Material( self.Icon ) )
	surface.DrawTexturedRect( self.PosX, self.PosY, self.Size, self.Size )
end

-- function SPELL_ICON:Think()
	-- if (self.Icon = SpellData[self.SlotNum][2] != self.Icon) then
		-- self.Icon = SpellData[self.SlotNum][2]
	-- end
-- end


vgui.Register( "DropSpot", SPELL_ICON)


